package parts4.lesson39;

public class DataConsumer implements Runnable {
    private Data data;

    public DataConsumer(Data data) {
        this.data = data;
    }

    @Override
    public void run() {
        for (int x = 0; x < 50; x++) {
            this.data.get();
        }
    }
}
